import { useCookies } from '@vueuse/integrations/useCookies';

const token_key = "user-token"
const cookie = useCookies();

export function setToken(token) {
    cookie.set(token_key, token);
}

export function getToken() {
    return cookie.get(token_key);
}

export function removeToken() {
    cookie.remove(token_key);
}